<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户登录 52橙子网</title>
<link rel="stylesheet" href="/shop/css/global/top.css" media="all" type="text/css"/>
<link rel="stylesheet" href="/shop/css/buyer/login.css" media="all" type="text/css"/>
<SCRIPT language=JavaScript src="/shop/js/FoshanRen.js"></SCRIPT>
  <SCRIPT LANGUAGE="JavaScript">
  <!--
	function checkForm(){
		var form = document.forms[1];
		//var username = document.getElementById("username");
		if(form.username.value=="" || form.username.value.length<6){
			alert("the username is:"+form.username.value);
			alert("请输入长度6位以上的用户名");
			return false;
		}
		//var password = document.getElementById("password");
		if(form.password.value=="" || form.password.value.length<6){
			alert("请输入长度6位以上的密码");
			return false;
		}
		return true;
	}
  //-->
  </SCRIPT>
</head>

<body>
<div class="container">
<jsp:include page="/WEB-INF/page/share/Head.jsp"/>
	<c:if test="${!empty message}">
<DIV id="errorinfo">
<TABLE cellSpacing=1 cellPadding=8 width="600" align="center" bgColor="#dd9988" border=0>
  <TBODY>
  <TR>
    <TD bgColor="#ffffd5" align="left"><IMG height="17" src="/shop/images/buy/exclamation-error-red.gif" width="17"> <FONT color="#990000"><STRONG><SPAN class="font14">错误提示<BR></SPAN></STRONG></FONT>
      <DIV id="errorMessage">${message }</DIV>
	</TD>
  </TR>
  </TBODY>
</TABLE>
</DIV></c:if>
<!-- Head End -->
<html:form action="/user/logon" method="post" onsubmit="javascript:return checkForm()">
 <INPUT TYPE="hidden" NAME="directUrl" value="${param.directUrl}"/>
	<div class="box">
       <div class="box_header">
       	<div><img src="/shop/image/buyer/login_icon.png"/></div>
           <div><font>用户登录:</font></div>
       </div>
       <div class="box_body">
       	<div>
           	<div class="textinput">
                   <font>您的账号:</font>
                    <input name="username" id="username" type="text" size="20px" maxlength="20" />
           	</div>
           </div>
           <div>
               <div class="textinput">
                   <font>您的密码:</font>
                   <input name="password" type="password" size="20px" maxlength="16" />	
               </div>
               <div class="forget"><a href="/shop/user/findpassword.do" class="ablue" target="_blank">忘记密码了？</a></div>
           </div>
           <div class="box_text">
           	*注意:如果你在网吧等公共场合的机器上登陆本网站,请在离开机器前退出,以免账户被他人冒用造成不必要的损失!
           </div>
           <div class="box_login">
				<input type="image" name="ImageButton1" src="/shop/image/buyer/login_btn.png" alt="" border="0" /><a href='<html:rewrite action="/user/reg"/>?method=regUI&directUrl=${param.directUrl }' >请免费注册</a>！
           </div>
       </div>
   </div>
   </html:form>
<jsp:include page="/WEB-INF/page/share/Foot.jsp"/>
 </div>
</body>
</html>
